package com.chinamoney.wppm.entity;


import java.io.Serializable;

import org.activiti.engine.repository.ProcessDefinition;


/**
 * 
 * ProcessDefinitionObj
 *
 * @author 姜治昊
 * @time 2018年5月12日 下午9:31:57
 */
public class ProcessDefinitionObj implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;
	
	private String deploymentId;
	
	private String name;
	
	private String key;
	
	private int version;
	
	private String resourceName;
	
	private String diagramResourceName;

	public ProcessDefinitionObj(ProcessDefinition processDefinition) {
		this.id = processDefinition.getId();
		this.deploymentId = processDefinition.getDeploymentId();
		this.name = processDefinition.getName();
		this.key = processDefinition.getKey();
		this.version = processDefinition.getVersion();
		this.resourceName = processDefinition.getResourceName();
		this.diagramResourceName = processDefinition.getDiagramResourceName();
	}
	
	public ProcessDefinitionObj(String id, String deploymentId, String name,
			String key, int version, String resourceName,
			String giagramResourceName) {
		super();
		this.id = id;
		this.deploymentId = deploymentId;
		this.name = name;
		this.key = key;
		this.version = version;
		this.resourceName = resourceName;
		this.diagramResourceName = giagramResourceName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDeploymentId() {
		return deploymentId;
	}

	public void setDeploymentId(String deploymentId) {
		this.deploymentId = deploymentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getDiagramResourceName() {
		return diagramResourceName;
	}

	public void setDiagramResourceName(String diagramResourceName) {
		this.diagramResourceName = diagramResourceName;
	}
	
	
}
